#include <string>
#include <cctype>

#include "idxutils.h"

namespace jsearch
{

std::string str_tolower(const std::string& s)
{
	std::string str;
	for (size_t i=0;i<s.size();i++)
		str.push_back(tolower(s.at(i))) ;

	return str;
}


char* str_tolower(char *s)
{
	char *p=s;
	int len=strlen(s);

	for (int i=0;i<len;i++)
		p[i]=tolower(p[i]);

	return p;
}

}//end namespace
